package cn.qlu.yhy.model;

import java.util.Date;

import org.springframework.stereotype.Component;

@Component
public class User {

    public int id;

    public String username;

    public String password;

    public String nickname;

    public int sex;

    public int age;

    public Date birthday;

    public String telephone;

    public String email;

    public String address;

    public int role;

    public int creditScore;

    public int moneyScore;

    public Date createDate;

    public Date lastLoginDate;

    public Date updateDate;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getCreditScore() {
        return creditScore;
    }

    public void setCreditScore(int creditScore) {
        this.creditScore = creditScore;
    }

    public int getMoneyScore() {
        return moneyScore;
    }

    public void setMoneyScore(int moneyScore) {
        this.moneyScore = moneyScore;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getLastLoginDate() {
        return lastLoginDate;
    }

    public void setLastLoginDate(Date lastLoginDate) {
        this.lastLoginDate = lastLoginDate;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public User() {
        super();
    }

    public User(String username, String password) {
        super();
        this.username = username;
        this.password = password;
    }

    public User(int id, String username, String password, String nickname,
            int sex, int age, Date birthday, String telephone, String email,
            String address, int role, int creditScore, int moneyScore,
            Date createDate, Date lastLoginDate, Date updateDate) {
        super();
        this.id = id;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.sex = sex;
        this.age = age;
        this.birthday = birthday;
        this.telephone = telephone;
        this.email = email;
        this.address = address;
        this.role = role;
        this.creditScore = creditScore;
        this.moneyScore = moneyScore;
        this.createDate = createDate;
        this.lastLoginDate = lastLoginDate;
        this.updateDate = updateDate;
    }




}
